package com.sims.action.seatChart;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.bean.SeatChart;
import com.sims.service.SeatChartService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

public class ModifySeatChartAction extends ActionEnhanced{
	private List<SeatChart> seatChartList;
	@Autowired
	private SeatChartService seatChartService;
	public List<SeatChart> getSeatChartList() {
		return seatChartList;
	}
	public void setSeatChartList(List<SeatChart> seatChartList) {
		this.seatChartList = seatChartList;
	}
	@Override
	public String execute() {
		
		result = seatChartService.modifySeatChart(seatChartList);
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		return ERROR;
	}
}
